<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>
        ${title}
    </title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="<%=basePath%>/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="<%=basePath%>/css/font-awesome.min.css">
    <link rel="stylesheet" href="<%=basePath%>/css/ionicons.min.css">
    <link rel="stylesheet" href="<%=basePath%>/dist/css/AdminLTE.min.css">
    <link rel="stylesheet" href="<%=basePath%>/toastr/toastr.css" type="text/css"/>
    <link rel="stylesheet" href="<%=basePath%>/dist/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="<%=basePath%>/fileupload/fileinput.min.css"/>
    <link rel="stylesheet" href="<%=basePath%>/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css">
    <link rel="stylesheet" href="<%=basePath%>/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="<%=basePath%>/plugins/iCheck/all.css">
    <link rel="stylesheet" href="<%=basePath%>/pagination/style/pagination.css" media="screen">
    <link rel="stylesheet" href="<%=basePath%>/plugins/iziModal/css/iziModal.min.css">
    <link rel="stylesheet" href="<%=basePath%>/plugins/select2/select2.min.css">
    <link rel="stylesheet" href="<%=basePath%>/plugins/iCheck/all.css">
    <link rel="stylesheet" href="<%=basePath%>/plugins/loaders/loaders.css"/>
    <link rel="stylesheet" href="<%=basePath%>/plugins/flavr/animate.css"/>
    <link rel="stylesheet" href="<%=basePath%>/plugins/flavr/flavr.css"/>
    <link rel="stylesheet" href="<%=basePath%>/plugins/viewer/viewer.min.css">
    <link rel="stylesheet" href="<%=basePath%>/plugins/bootstrap-treeview/css/bootstrap-treeview.css">
</head>
<!-- ADD THE CLASS sidedar-collapse TO HIDE THE SIDEBAR PRIOR TO LOADING THE SITE -->
    <body class="hold-transition skin-blue sidebar-mini">

    <!-- Site wrapper -->
    <div id="request-div" style="position: absolute;width: 100%;height: 100%;z-index: 10000;display: none;">
        <img src='../images/request-sending.gif' style="position: relative;top: 50%;left: 50%;width: 70px;height: 70px">
    </div>
    <div class="wrapper">
        <header class="main-header">
            <!-- Logo -->
            <jsp:include page="../logo.jsp" ></jsp:include >
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-fixed-top">
                <!-- Sidebar toggle button-->
                <a class="sidebar-toggle" data-toggle="offcanvas" role="button" onclick="show()">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <jsp:include page="../menuTop.jsp"></jsp:include>
            </nav>

        </header>

        <!-- =============================================== -->

        <!-- Left side column. contains the sidebar -->
        <aside class="main-sidebar">
            <jsp:include page="../menu.jsp"></jsp:include>
            <!-- /.sidebar -->
        </aside>

        <!-- =============================================== -->


        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper" style="padding-top:50px;">
            <section class="content-header">
                <ol class="breadcrumb">
                    <li class="text-muted"><i class="fa fa-th"></i>&nbsp;&nbsp;服务管理
                    </li>
                    <li class="text-muted"><i class="fa fa-circle-o"></i>&nbsp;&nbsp;维修
                    </li>
                </ol>
            </section>

            <input type="hidden" value="${loginUser.hospitalId}" id="hospitalId">
            <input type="hidden" id="basePath" value="<%=basePath%>/">
            <section class="content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="box box-info">
                            <div class="box-header with-border text-left">
                                <!-- 左边按钮 -->
                                <span class="pull-left">
                                    <button type="button" class="btn btn-info btn-sm" data-toggle="tooltip" onclick="createRepair()" title="新增报修">
                                        <i class="fa fa-plus"></i>
                                    </button>
                                    <c:if test="${loginUser.type == '1104'}">
                                        <button type="button" class="btn btn-info btn-sm" data-toggle="tooltip" onclick="openAssignModel()" title="分配">
                                            <i class="fa fa-hand-pointer-o"></i>
                                        </button>
                                    </c:if>
                                    <c:if test="${loginUser.type == '1104'}">
                                        <button id="upkeepData" type="button" class="btn btn-info btn-sm" data-toggle="tooltip" title="信息补全" onclick="improveInfo()">
                                            <i class="fa fa-edit"></i>
                                        </button>
                                    </c:if>
                                    <c:if test="${loginUser.type == '1104'}">
                                        <button id="part" type="button" class="btn btn-info btn-sm" title="备件" data-toggle="tooltip" onclick="queryPartListByRepairId()">
                                            <i class="fa fa-navicon"></i>
                                        </button>
                                    </c:if>
                                    <button type="button" class="btn btn-info btn-sm" data-toggle="tooltip" onclick="confirm()" title="确认">
                                        <i class="fa fa-check-square"></i>
                                    </button>
                                    <c:if test="${loginUser.type == '1104'}">
                                        <button type="button" class="btn btn-info btn-sm" data-toggle="tooltip" onclick="addEvent()" title="事件">
                                            <i class="fa fa-warning"></i>
                                        </button>
                                    </c:if>
                                    <c:if test="${loginUser.type == '1104'}">
                                        <button type="button" class="btn btn-info btn-sm" title="修改负责人" onclick="editResponsier()" data-toggle="tooltip">
                                            <i class="fa fa-pencil"></i>
                                        </button>
                                    </c:if>
                                </span>
                                <!-- 右边查询按钮 -->
                                <span class="pull-right">
                                    <span>显示</span>
                                    <select id="show-count" style="color: #EA544A">
                                        <option value="20">20</option>
                                        <option value="50">50</option>
                                        <option value="100">100</option>
                                        <option value="200">200</option>
                                    </select>
                                    <span>条，</span>
                                    <span>共计</span>
                                    <span id="total-count">0</span>
                                    <span>条</span>
                                    <!-- <button id="execlReport" type="button" class="btn btn-info btn-sm" data-toggle="tooltip" title="导入" onclick="execl()">
                                              <i class="fa fa-file-excel-o"></i>
                                    </button> -->
                                    <button type="button" class="btn btn-info btn-sm" data-toggle="tooltip" title="刷新"
                                            onclick="refresh()">
                                        <i class="fa fa-refresh"></i>
                                    </button>
                                    <button id="search" type="button" class="btn btn-info btn-sm" data-toggle="tooltip" title="查询" onclick="search()">
                                        <i class="fa fa-search"></i>
                                    </button>
                                </span>
                            </div>

                            <div class="box-body" style="margin: 5px 0px -10px 0px">
                                <input type="hidden" id="apiUrl" value="<%=basePath%>/">
                                <input type = "hidden" value="${loginUser.type}" id="userType">
                                <input type = "hidden" value="${loginUser.realName}" id="userName">
                                <input type = "hidden" value="${loginUser.mobile}" id="userPhone">
                                <form id="queryForm" action="<%=basePath %>/repair/page" method="post">
                                    <div class="row">
                                        <div class="col-md-3">
                                            <div class="form-group">
                                                <input type="text" class="form-control" id="deviceName" name="deviceName" placeholder='设备名称/型号/序列号'>
                                            </div>
                                        </div>
                                        <div class="col-md-3">
                                            <div class="form-group">
                                                <input type="text" class="form-control" id="filterRepairNo" name="repairNo" placeholder='维修编号'>
                                            </div>
                                        </div>
                                        <c:if test="${loginUser.type == '1104'}">
                                            <div class="col-md-3">
                                                <div class="form-group">
                                                    <select style="width: 100%" name="hospitalId" id="filter-hospital">
                                                    </select>
                                                </div>
                                            </div>
                                        </c:if>
                                        <div class="col-md-3">
                                            <div class="form-group">
                                                <select style="width: 100%" name="status" id="filter-status">
                                                </select>
                                            </div>
                                        </div>
                                        <!-- <div class="col-md-3">
                                            <div class="form-group">
                                                <select style="width: 100%" name="urgentDegree">
                                                    <option value="1">紧急</option>
                                                    <option value="2">一般</option>
                                                    <option value="3">非紧急</option>
                                                </select>
                                            </div>
                                        </div> -->
                                        <!-- <div class="col-md-3">
                                            <div class="form-group">
                                                <select style="width: 100%" name="manufacturerId" id="filter-manufacturer"></select>
                                            </div>
                                        </div> -->
                                        <!-- <c:if test="${loginUser.type == '1104'}">
                                            <div class="col-md-3">
                                                <div class="form-group">
                                                    <select style="width: 100%" name="maintainerId" id="filter-maintainer"></select>
                                                </div>
                                            </div>
                                        </c:if> -->
                                    </div>
                                </form>
                            </div>
                            <div class="box-body table-responsive no-padding">
                                <table class="table table-bordered table-hover">
                                    <thead>
                                        <tr class="info">
                                            <th class="text-center text-muted" style="width: 30px">#</th>
                                            <th class="text-center text-muted" style="width: 20px">操作</th>
                                            <th class="text-center text-muted" style="width: 20px">详情</th>
                                            <th class="text-muted">报修编号</th>
                                            <th class="text-muted">设备名称</th>
                                            <th class="text-muted">设备型号</th>
                                            <th class="text-muted">序列号</th>
                                            <th class="text-muted">医院</th>
                                            <th class="text-muted">报修人</th>
                                            <th class="text-muted">报修人电话</th>
                                            <th class="text-muted">维修商</th>
                                            <th class="text-muted">维修状态</th>
                                            <th class="text-muted">评论状态</th>
                                        </tr>
                                    </thead>
                                    <tbody id="repair-table"></tbody>
                                </table>
                            </div>
                         </div>
                    </div>
                </div>
            </section>
        </div>

        <!-- 自定义model模态框 《开始》-->
        <div id="add-repair-modal" style="display: none;">
            <div class="box-body">
                <form id="addRepairForm" class="form-horizontal" method="post">
                    <div class="col-md-12"><b class="text-aqua" style="margin-left:10px">报修信息</b></div>
                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">设备 <span class="text-red">*</span></label>
                        <div class="col-md-9 form-group input-group date">
                            <input type="text" class="form-control" name="deviceName" readonly style="width: 90%">
                            <div id="chooseDevice" class="input-group-addon" data-toggle="tooltip" style="background-color: #fff;cursor: pointer;position: relative;right: 8%">
                                <i class="fa fa-bars"></i>
                            </div>
                            <div id="emptyDeviceName"  class="input-group-addon" title="清空" data-toggle="tooltip"style="background-color: #fff;cursor: pointer;;position: relative;right: 9%">
                                <i class="fa fa-close"></i>
                            </div>
                            <input type="hidden" value="" name="deviceId" id="repairDeviceId">
                        </div>
                    </div>
                    <c:if test="${loginUser.type == 1104}">
                        <div class="col-md-6">
                            <label  class="col-sm-3 control-label text-muted">医院 <span class="text-red">*</span></label>
                            <div class="col-md-9 form-group" >
                                <input type="text" class="form-control" name="hospitalName" readonly>
                                <input type="hidden" value="" name="hospitalId" id="repairHospitalId">
                            </div>
                            <!-- <div class="col-md-9 form-group input-group date" >
                                <input type="text" class="form-control" name="hospitalName" readonly style="width: 90%">
                                <div id="chooseHospital" class="input-group-addon" data-toggle="tooltip"style="background-color: #fff;cursor: pointer;position: relative;right: 8%">
                                    <i class="fa fa-bars"></i>
                                </div>
                                <div  id="emptyHospitalName" class="input-group-addon" title="清空" data-toggle="tooltip"style="background-color: #fff;cursor: pointer;position: relative;right: 9%">
                                    <i class="fa fa-close"></i>
                                </div>
                                <input type="hidden" value="" name="hospitalId" id="repairHospitalId">
                            </div> -->
                        </div>
                    </c:if>
                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">设备状态 <span class="text-red">*</span></label>
                        <div class="col-md-9 form-group" >
                            <select name="deviceStatus" style="width: 100%" id="addDeviceStatus">
                                <option value=""></option>
                                <option value="1500">正常</option>
                                <option value="1501">部分故障</option>
                                <option value="1502">无法开机</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">故障时间<span class="text-red">*</span></label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="faultTime" id="faultTime">
                        </div>
                    </div>
                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">故障描述</label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="faultDescription" id="faultDescription">
                        </div>
                    </div>
                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">联系人<span class="text-red">*</span></label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="repairPerson" id="addRepairPerson">
                        </div>
                    </div>
                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">联系人电话<span class="text-red">*</span></label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="repairPhone" id="addRepairPhone">
                        </div>
                    </div>
                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">备注</label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="remark">
                        </div>
                    </div>
                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">文件类型</label>
                        <div class="col-md-9 form-group">
                            <select class="form-control" style="width: 100%" name="fileType">
                                <option value='3300'>故障图片</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">故障图片</label>
                        <div class="col-md-9 form-group">
                            <input type="file" name="files" class="file" id="files" multiple/>
                            <input type="hidden" name="fileIds" id="addRepairFileIds">
                            <input type="hidden" value="1402" name="keyType">
                        </div>
                    </div>
                    <div class="col-md-12"><b class="text-aqua" style="margin-left:10px">服务商信息</b></div>
                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">类型</label>
                        <div class="col-md-9 form-group" >
                            <div class="radio" style="margin-top: 3px">
                                <label>
                                    <input type="radio" class="flat-green" name="serviceType" value="1102">厂商
                                </label>
                                <label>
                                    <input type="radio" class="flat-green" name="serviceType" value="1105">经销商
                                </label>
                                <label>
                                    <input type="radio" class="flat-green" name="serviceType" value="1103">维修商
                                </label>
                                <c:if test="${loginUser.type == '1101'}">
                                    <label>
                                        <input type="radio" class="flat-green" name="serviceType" checked value="0">无
                                    </label>
                                </c:if>
                            </div>
                        </div>
                    </div>
                    <input type="hidden" name="serviceId" id="addServiceId">
                    <div class="col-md-6" id="manufacturerDiv">
                        <label  class="col-sm-3 control-label text-muted">厂商</label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="manufacturerName" readonly>
                            <input type="hidden" name="manufacturerId" id="addManufacturerId">
                        </div>
                    </div>

                    <div class="col-md-6" id="supplierDiv" style="display: none;">
                        <label  class="col-sm-3 control-label text-muted">经销商</label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="supplierName" readonly>
                            <input type="hidden" name="supplierId" id="addSupplierId">
                        </div>
                    </div>
                    <div id="maintainerDiv" style="display: none;">
                        <div class="col-md-6">
                            <label  class="col-sm-3 control-label text-muted">维修商</label>
                            <div class="col-md-9 form-group" >
                                <input type="text" class="form-control" name="serviceName" id="addServiceName" data-provide="typeahead" autocomplete="off">
                            </div>
                        </div>

                        <div class="col-md-6" >
                            <label  class="col-sm-3 control-label text-muted">维修商联系人</label>
                            <div class="col-md-9 form-group" >
                                <input type="text" class="form-control" name="serviceContacts" id="addServiceContacts">
                            </div>
                        </div>

                        <div class="col-md-6" >
                            <label  class="col-sm-3 control-label text-muted">联系人电话</label>
                            <div class="col-md-9 form-group" >
                                <input type="text" class="form-control" name="servicePhone" id="addServicePhone">
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12"><b class="text-aqua" style="margin-left:10px">工程师信息</b></div>
                    <div class="col-md-6">
                        <label  class="col-sm-4 control-label text-muted">填写工程师</label>
                        <div class="col-md-8 form-group" >
                            <div class="radio">
                                <label>
                                    <input type="radio" class="flat-green" name="isDispatch" value="1" >&nbsp;是
                                </label>
                                <label>
                                    <input type="radio" class="flat-green" name="isDispatch" value="0" checked>&nbsp;否
                                </label>
                            </div>
                        </div>
                    </div>
                    <div id="fillEngineer" style="display: none;">
                        <div class="col-md-6">
                            <label  class="col-sm-3 control-label text-muted">
                                工程师
                                <span class="text-red">*</span>
                            </label>
                            <div class="col-md-9 form-group" >
                                <input type="text" class="form-control" name="engineer" id="addEngineer">
                            </div>
                        </div>
                        <div class="col-md-6">
                            <label  class="col-sm-3 control-label text-muted">
                                工程师电话
                                <span class="text-red">*</span>
                            </label>
                            <div class="col-md-9 form-group" >
                                <input type="text" class="form-control" name="engineerPhone" id="addEngineerPhone">
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="box-footer">
                 <span class="pull-right">
                    <button data-iziModal-close class="btn btn-default" style="margin-right: 5px">关闭</button>
                </span>
                <span class="pull-right">
                    <button  class="btn btn-info" id="saveAddRepair" style="margin-right: 5px">提交</button>
                </span>
            </div>
        </div>

        <div id="deviceDvie"></div>
        <div id="hospitalDvie"></div>

        <!-- 1.分配服务上的model -->
        <div id="assign-model" style="display: none;">
            <div class="box-body">
                <div class="col-md-8">
                    <table class="table table-striped table-bordered" border="0">
                        <tr>
                            <td class="text-muted text-right">设备名称</td>
                            <td class="text-muted text-left"><span id="deviceNameSpan"></span></td>
                            <td class="text-muted text-right">设备型号</td>
                            <td class="text-muted text-left"><span id="deviceModelSpan"></span></td>
                        </tr>

                        <tr>
                            <td class="text-muted text-right">设备序列号</td>
                            <td class="text-muted text-left"><span id="snSpan"></span></td>
                        </tr>

                        <tr>
                            <td class="text-muted text-right">厂商</td>
                            <td class="text-muted text-left"><span id="manufacturerNameSpan"></span></td>
                            <td class="text-muted text-right">厂商联系人</td>
                            <td class="text-muted text-left"><span id="manufacturerContactsSpan"></span></td>
                        </tr>

                        <tr>
                            <td class="text-muted text-right">厂商联系人电话</td>
                            <td class="text-muted text-left"><span id="manufacturerPhoneSpan"></span></td>
                            <td class="text-muted text-right"> 维保合同有效期</td>
                            <td class="text-muted text-left"><span id="endGuaranteeDateSpan"></span></td>
                        </tr>

                        <tr>
                            <td class="text-muted text-right">设备保内外状态</td>
                            <td class="text-muted text-left"><span id="InsideOutsideStrSpan"></span></td>
                            <td class="text-muted text-right"> 维修商</td>
                            <td class="text-muted text-left"><span id="maintainerNameSpan"></span></td>
                        </tr>

                        <tr>
                            <td class="text-muted text-right">维修商联系人</td>
                            <td class="text-muted text-left"><span id="maintainerContactsSpan"></span></td>
                            <td class="text-muted text-right"> 维修商联系人电话</td>
                            <td class="text-muted text-left"><span id="maintainerPhoneSpan"></span></td>
                        </tr>
                        <tr>
                            <td class="text-muted text-right">联系人</td>
                            <td class="text-muted text-left"><span id="hospitalContactsSpan"></span></td>
                            <td class="text-muted text-right">联系电话</td>
                            <td class="text-muted text-left"><span id="hospitalPhoneSpan"></span></td>
                        </tr>
                        <tr>
                            <td class="text-muted text-right">故障时间</td>
                            <td class="text-muted text-left"><span id="FaultTime_Two"></span></td>
                            <td class="text-muted text-right">故障描述</td>
                            <td class="text-muted text-left"><input type="text" id="faultDepictHospital"></td>
                        </tr>
                        <tr id="Is_Hidden">
                            <td class="text-muted text-right" style="line-height: 50px;">语音记录</td>
                            <td class="text-muted text-left"><span><audio id="Audio_Box" src="" controls="controls"></audio ></span></td>
                            <td class="text-muted text-right"></td>
                            <td class="text-muted text-left"><span ></span></td>
                        </tr>
                        <tr>
                            <td class="text-muted " colspan="4">医院填写信息</td>
                        </tr>
                        <tr>
                            <td class="text-muted " style="text-align: right">医院选择的服务商是</td>
                            <td class="text-muted " style="text-align: left"><span id="serviceCompanySpan"></span></td>
                            <td class="text-muted " style="text-align: right">服务商联系人</td>
                            <td class="text-muted " style="text-align: left"><span id="serviceNameSpan"></span></td>
                        </tr>
                        <tr>
                            <td class="text-muted " style="text-align: right">服务商联系电话</td>
                            <td class="text-muted " style="text-align: left" colspan="3"><span id="servicePhoneSpan"></span></td>
                        </tr>
                        <tr id="engineerTr"></tr>
                        <tr id="examineTr"></tr>
                    </table>
                    <form id="assignForm" class="form-horizontal col-md-12" style="padding: 15px">
                        <div id="assignServiceDiv" class="col-md-12">
                            <h5><b class="text-aqua" style="margin-left:20px">服务商信息</b></h5>
                            <div class="col-md-6 form-group">
                                <label  class="col-sm-4 control-label text-muted">服务商类型<span class="text-red">*</span></label>
                                <div class="col-md-8" >
                                    <div class="radio">
                                        <label>
                                            <input type="radio" class="flat-green" name="serviceType" value="1102">厂商
                                        </label>
                                        <label>
                                            <input type="radio" class="flat-green" name="serviceType" value="1105">经销商
                                        </label>
                                        <label>
                                            <input type="radio" class="flat-green" name="serviceType" value="1103">维修商
                                        </label>
                                    </div>
                                </div>
                            </div>

                            <input type="hidden" name="serviceId">
                            <div class="col-md-6 form-group" id="assignManufacturerDiv" >
                                <label  class="col-sm-4 control-label text-muted">厂商</label>
                                <div class="col-md-8" >
                                    <input type="text" class="form-control" name="manufacturerName" readonly>
                                    <input type="hidden" name="manufacturerId">
                                </div>
                            </div>

                            <div class="col-md-6 form-group" id="assignSupplierDiv" style="display: none;">
                                <label  class="col-sm-4 control-label text-muted">经销商</label>
                                <div class="col-md-8" >
                                    <input type="text" class="form-control" name="supplierName" readonly>
                                    <input type="hidden" name="supplierId">
                                </div>
                            </div>

                            <div id="assignMaintainerDiv" style="display: none;">
                                <div class="col-md-6 form-group" >
                                    <label  class="col-sm-4 control-label text-muted">维修商</label>
                                    <div class="col-md-8" >
                                        <input type="text" class="form-control" name="serviceName" data-provide="typeahead"
                                               autocomplete="off">
                                    </div>
                                </div>

                                <div class="col-md-6 form-group" >
                                    <label  class="col-sm-4 control-label text-muted">维修商联系人</label>
                                    <div class="col-md-8" >
                                        <input type="text" class="form-control" name="serviceContacts">
                                    </div>
                                </div>

                                <div class="col-md-6 form-group" >
                                    <label  class="col-sm-4 control-label text-muted">联系人电话</label>
                                    <div class="col-md-8" >
                                        <input type="text" class="form-control" name="servicePhone">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="engineerDiv" class="col-md-12">
                            <h5><b class="text-aqua" style="margin-left:20px">工程师信息</b></h5>
                            <div class="col-md-12 form-group" style="height: 34px">
                                <label  class="col-sm-4 control-label text-muted">是否指派负责人</label>
                                <div class="col-md-8" >
                                    <div class="radio" style="margin-top: 3px">
                                        <label>
                                            <input type="radio" class="flat-green" value="1" name="is_dispatch">是
                                        </label>
                                        <label>
                                            <input type="radio" class="flat-green" name="is_dispatch" value="0">否
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div id="dispatchDiv" style="display: none;">
                                <!-- <div class="col-md-6  form-group">
                                    <label  class="col-sm-4 control-label text-muted">派工时间<span class="text-red">*</span></label>
                                    <div class="col-md-8" >
                                        <input type="text" class="form-control" name="dispathTime" id="dispathTime">
                                    </div>
                                </div> -->

                                <div class="col-md-12  form-group">
                                    <label  class="col-sm-4 control-label text-muted">负责人姓名<span class="text-red">*</span></label>
                                    <div class="col-md-8" >
                                        <input type="text" class="form-control" name="engineerName" id="engineerName">
                                    </div>
                                </div>

                                <div class="col-md-12  form-group">
                                    <label  class="col-sm-4 control-label text-muted">负责人电话<span class="text-red">*</span></label>
                                    <div class="col-md-8" >
                                        <input type="text" class="form-control" name="engineerPhone" id="engineerPhone">
                                    </div>
                                </div>

                                <%--<div class="col-md-6  form-group">
                                    <label  class="col-sm-4 control-label text-muted">医院联系人<span class="text-red">*</span></label>
                                    <div class="col-md-8" >
                                        <input type="text" class="form-control" name="hospitalContacts" id="hospitalContacts">
                                    </div>
                                </div>

                                <div class="col-md-6 form-group">
                                    <label  class="col-sm-4 control-label text-muted">医院联系人电话<span class="text-red">*</span></label>
                                    <div class="col-md-8" >
                                        <input type="text" class="form-control" name="hospitalPhone" id="hospitalPhone">
                                    </div>
                                </div>--%>
                            </div>
                        </div>

                    </form>
                </div>
                <div class="col-md-4">
                    <div class="col-md-12">
                        <div class="col-md-12">
                            <label  class="col-sm-12 control-label text-muted">故障照片</label>
                        </div>
                        <div class="col-md-12" style="display: flex;justify-content: flex-start;flex-wrap: wrap" id="img_box_one">
                        </div>
                    </div>
                </div>
            </div>
            <div class="box-footer">
                <span class="pull-right">
                    <button data-iziModal-close class="btn btn-default" style="margin-right: 5px">关闭</button>
                    <button class="btn btn-primary" style="margin-right: 5px" onclick="submitAssign()">提交</button>
                </span>
            </div>
        </div>
        <div id="assign_model_Two" style="display: none;">
            <div class="box-body">
                <div class="col-md-8">
                    <table class="table table-striped table-bordered" border="0">
                        <tr>
                            <td class="text-muted text-right">医院</td>
                            <td class="text-muted text-left"><span id="hospitalName"></span></td>
                            <td class="text-muted text-right">地址</td>
                            <td class="text-muted text-left"><span id="address"></span></td>
                        </tr>
                        <tr>
                            <td class="text-muted text-right">备注</td>
                            <td class="text-muted text-left"><span id="remark"></span></td>
                            <td class="text-muted text-right">联系人</td>
                            <td class="text-muted text-left" id="IF_Box"><span id="linkman"></span></td>
                        </tr>

                        <tr>
                            <td class="text-muted text-right">手机号码</td>
                            <td class="text-muted text-left"><span id="phoneNumber"></span></td>
                            <td class="text-muted text-right"> 故障时间</td>
                            <td class="text-muted text-left"><span id="malfunctionTime"></span></td>
                        </tr>
                        <tr>
                            <td class="text-muted " style="text-align: right">品牌</td>
                            <td class="text-muted " style="text-align: left"><span id="brand"></span></td>
                            <td class="text-muted " style="text-align: right">是否指派负责人</td>
                            <td class="text-muted " style="text-align: left"><label>
                                <input type="radio" class="flat-green" id="YES" value="1" name="is_dispatch">是
                            </label>
                                <label>
                                    <input type="radio" class="flat-green" id="NO" name="is_dispatch" value="0">否
                                </label>
                            </td>
                        </tr>


                        <tr id="dispatch_Div" style="display: none;">
                            <td class="text-muted text-right">负责人姓名<span class="text-red">*</span></td>
                            <td class="text-muted text-left"><input type="text" class="form-control" name="engineerName" id="engineerName_two"></td>
                            <td class="text-muted text-right"> 负责人电话<span class="text-red">*</span></td>
                            <td class="text-muted text-left"><input type="text" class="form-control" name="engineerPhone" id="engineerPhone_two"></td>
                        </tr>

                        <tr>
                            <td class="text-muted " style="text-align: right">故障描述</td>
                            <td class="text-muted " style="text-align: left"><input type="text" class="form-control" name="faultDepictHospital_Two" id="faultDepictHospital_Two"></td>
                            <td class="text-muted " style="text-align: right">请选择</td>
                            <td class="text-muted " style="text-align: left">
                                <label>
                                    <input type="radio" checked class="flat-green" name="serviceType" value="1102">厂商
                                </label>
                                <label>
                                    <input type="radio" class="flat-green" name="serviceType" value="1103">维修商
                                </label>
                            </td>
                        </tr>

                        <tr class="box_one">
                            <td class="text-muted text-right">厂商<span class="text-red">*</span></td>
                            <td class="text-muted text-left">
                                <select name="Manufacturer_select" id="Manufacturer_select" style="width: 100%">
                                </select>
                            </td>
                            <td class="text-muted text-right"> 厂家联系人<span class="text-red">*</span></td>
                            <td class="text-muted text-left"><span id="Manufacturer_Linkman"></span></td>
                        </tr>

                        <tr id="Is_Hidden_Two">
                            <td class="text-muted text-right" style="line-height: 50px;">语音记录</td>
                            <td class="text-muted text-left"><span><audio id="Audio_Box_Two" src="" controls="controls"></audio ></span></td>
                            <td class="text-muted text-right"></td>
                            <td class="text-muted text-left"><span ></span></td>
                        </tr>

                        <tr class="box_one">
                            <td class="text-muted text-right">联系人电话<span class="text-red">*</span></td>
                            <td class="text-muted text-left">
                                <span id="Manufacturer_Phone"></span>
                            </td>
                            <td class="text-muted text-right"> 账号</td>
                            <td class="text-muted text-left"><span id="userName"></span></td>
                        </tr>
                        <tr class="box_one">
                            <td class="text-muted text-right">密码</td>
                            <td class="text-muted text-left">
                                <span id="password"></span>
                            </td>
                            <td class="text-muted text-right"></td>
                            <td class="text-muted text-left"></td>
                        </tr>

                        <tr class="box_two" style="display: none">
                            <td class="text-muted text-right">维修商<span class="text-red">*</span></td>
                            <td class="text-muted text-left">
                                <select name="Maintainer_select" id="Maintainer_select" style="width: 100%">
                                </select>
                            </td>
                            <td class="text-muted text-right"> 维修商联系人<span class="text-red">*</span></td>
                            <td class="text-muted text-left"><span id="Maintainer_Linkman"></span></td>
                        </tr>

                        <tr class="box_two" style="display: none">
                            <td class="text-muted text-right">联系人电话<span class="text-red">*</span></td>
                            <td class="text-muted text-left">
                                <span id="Maintainer_Phone"></span>
                            </td>
                            <td class="text-muted text-right"> 账号</td>
                            <td class="text-muted text-left"><span id="userName"></span></td>
                        </tr>
                        <tr class="box_two" style="display: none">
                            <td class="text-muted text-right">密码</td>
                            <td class="text-muted text-left">
                                <span id="password"></span>
                            </td>
                            <td class="text-muted text-right"></td>
                            <td class="text-muted text-left"></td>
                        </tr>
                    </table>
                </div>
                <div class="col-md-4">
                    <div class="col-md-12">
                        <div class="col-md-12">
                            <label  class="col-sm-12 control-label text-muted">设备照片</label>
                        </div>
                        <div class="col-md-12" style="display: flex;justify-content: flex-start;flex-wrap: wrap" id="box_img_one">
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="col-md-12">
                            <label  class="col-sm-12 control-label text-muted">设备铭牌</label>
                        </div>
                        <div class="col-md-12" style="display: flex;justify-content: flex-start;flex-wrap: wrap" id="box_img_two">
                        </div>
                    </div>
                </div>
            </div>
            <div style="height: 400px"></div>
            <div class="box-footer">
                <span class="pull-right">
                    <button data-iziModal-close class="btn btn-default" style="margin-right: 5px">关闭</button>
                    <button class="btn btn-primary" style="margin-right: 5px" onclick="save_info()">提交</button>
                </span>
            </div>
        </div>

        <!--审核模态框-->
        <div id="examine-maintainer" style="display: none;">
            <div class="box-body">
                <form id="examine-maintainer-form" class="form-horizontal" method="post">
                    <input type="hidden" name="repairId">
                    <input type="hidden" name="serviceType" value="1103">
                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">服务商名称</label>
                        <div class="col-md-8 form-group" >
                            <input type="text" class="form-control" name="serviceName" readonly>
                        </div>
                    </div>

                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">服务商联系人</label>
                        <div class="col-md-8 form-group" >
                            <input type="text" class="form-control" name="serviceContacts">
                        </div>
                    </div>

                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">服务商联系电话</label>
                        <div class="col-md-8 form-group" >
                            <input type="text" class="form-control" name="servicePhone">
                        </div>
                    </div>

                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">审核</label>
                        <div class="col-md-8 form-group" >
                            <div class="radio">
                                <label>
                                    <input type="radio" class="flat-green" name="examine" value="1" checked>通过
                                </label>
                                <label>
                                    <input type="radio" class="flat-green" name="examine" value="0" >不通过
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">审核说明</label>
                        <div class="col-md-8 form-group" >
                            <input type="text" class="form-control" name="examineComment">
                        </div>
                    </div>
                </form>

                <div class="box-footer">
                    <span class="pull-right">
                        <button data-iziModal-close class="btn btn-default" style="margin-right: 5px">关闭</button>
                    </span>
                    <span class="pull-right">
                        <button  class="btn btn-info" id="saveExamineMaintainer" style="margin-right: 5px">提交</button>
                    </span>
                </div>
            </div>
        </div>

        <div id="improve-model" style="display: none;">
            <div class="box-body">
                <form id="improve-form" class="form-horizontal" method="post" enctype="multipart/form-data">
                    <input type="hidden" name="repairId" id="improveRepairId">
                    <input type="hidden" name="deviceId" id="improveDeviceId">
                    <input type="hidden" name="keyType" value="1402">
                    <input type="hidden" name="fileIds" id="improveFileIds">
                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">差旅时间(小时)</label>
                        <div class="col-md-8 form-group" >
                            <input  class="form-control" name="travelTime" id="travelTime"/>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">维修方式</label>
                        <div class="col-md-8 form-group" >
                            <select name="repairMode" style="width: 100%" id="repairMode">
                                <option value="2300">在院维修</option>
                                <option value="2301">寄修</option>
                                <option value="2302">电话支持</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">维修开始状态</label>
                        <div class="col-md-8 form-group" >
                            <select name="repairDeviceStartStatus" style="width: 100%" id="repairDeviceStartStatus">
                                <option value="1500">正常</option>
                                <option value="1501">部分故障</option>
                                <option value="1501">无法开机</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">维修结束时间</label>
                        <div class="col-md-8 form-group" >
                            <input  class="form-control" name="repairEndTime" id="repairEndTime"/>
                        </div>
                    </div>

                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">
                            维修结束状态
                            <span class="text-red">*</span>
                        </label>
                        <div class="col-md-8 form-group" >
                            <select name="repairDeviceEndStatus" style="width: 100%" id="repairDeviceEndStatus">
                                <option value="1500">正常</option>
                                <option value="1501">部分故障</option>
                                <option value="1501">无法开机</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">故障描述</label>
                        <div class="col-md-8 form-group" >
                            <input  class="form-control" name="faultDepictEngineer" id="faultDepictEngineer"/>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">维修内容</label>
                        <div class="col-md-8 form-group" >
                            <input  class="form-control" name="repairContent" id="repairContent"/>
                        </div>
                    </div>
                </form>
                    <!-- <div class="col-md-6">
                        <label  class="col-sm-4 control-label text-muted">文件类型</label>
                        <div class="col-md-8 form-group">
                            <select class="form-control" style="width: 100%" name="fileType">
                                <option value='3301'>维修前设备图片</option>
                                <option value='3302'>维修后设备图片</option>
                                <option value='3303'>维修工单</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">文件</label>
                        <div class="col-md-8 form-group" >
                            <input type="file" name="files" class="file" id="files" multiple/>
                        </div>
                    </div> -->
                <form id="improve-one" class="form-horizontal" method="post" enctype="multipart/form-data">
                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">维修前设备图片</label>
                        <div class="col-md-8 form-group" >
                            <input type="hidden" name="keyType" value="1402">
                            <input type="hidden" name="fileType" value="3301">
                            <input type="hidden" name="repairId" id="repairIdOne">
                            <input type="hidden" name="fileIds" id="improveOneFileIds">
                            <input type="file" name="files" class="file" id="files" multiple/>
                        </div>
                    </div>
                </form>
                <form id="improve-two" class="form-horizontal" method="post" enctype="multipart/form-data">
                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">维修后设备图片</label>
                        <div class="col-md-8 form-group" >
                            <input type="hidden" name="keyType" value="1402">
                            <input type="hidden" name="fileType" value="3302">
                            <input type="hidden" name="repairId" id="repairIdTwo">
                            <input type="hidden" name="fileIds" id="improveTwoFileIds">
                            <input type="file" name="files" class="file" id="files" multiple/>
                        </div>
                    </div>
                </form>
                <form id="improve-three" class="form-horizontal" method="post" enctype="multipart/form-data">
                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">维修工单</label>
                        <div class="col-md-8 form-group" >
                            <input type="hidden" name="keyType" value="1402">
                            <input type="hidden" name="fileType" value="3303">
                            <input type="hidden" name="repairId" id="repairIdThree">
                            <input type="hidden" name="fileIds" id="improveThreeFileIds">
                            <input type="file" name="files" class="file" id="files" multiple/>
                        </div>
                    </div>
                </form>
            </div>
            <div class="box-footer">
                 <span class="pull-right">
                    <button data-iziModal-close class="btn btn-default" style="margin-right: 5px">关闭</button>
                    <button  class="btn btn-primary" onclick="improveConfirm()" style="margin-right: 5px">提交</button>
                </span>
            </div>
        </div>

        <!--修改负责人模态框-->
        <div id="edit-responser-model" style="display: none;">
            <div class="box-body">
                <form id="edit-responser-form" class="form-horizontal" method="post">
                    <!-- <input type="hidden" name="repairId"> -->
                    <input type="hidden" name="appointId">
                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">
                            工程师姓名
                            <span class="text-red">*</span>
                        </label>
                        <div class="col-md-8 form-group" >
                            <input  class="form-control" name="engineerName" id="editEngineerName"/>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <label  class="col-sm-4 control-label text-muted">
                            工程师电话
                            <span class="text-red">*</span>
                        </label>
                        <div class="col-md-8 form-group" >
                            <input  class="form-control" name="engineerPhone" id="editEngineerPhone"/>
                        </div>
                    </div>
                </form>
            </div>
            <div class="box-footer">
                 <span class="pull-right">
                    <button data-iziModal-close class="btn btn-default" style="margin-right: 5px">取消</button>
                    <button  class="btn btn-primary" onclick="editConfirm()" style="margin-right: 5px">提交</button>
                </span>
            </div>
        </div>

        <!-- 自定义model模态框 《结束》-->
        <div id="saveEventDiv"></div>
        <div id="confirmDiv"></div>
        <div id="part-modal" style="display: none;">
            <input type="hidden" value="" name="repairId">
            <div class="box-body">
                    <div class="row">
                        <div class="col-md-2 pull-left">
                            <div class="form-group">
                                <button name="addPart" type="button" class="btn btn-info btn-sm" title="新增备件" data-toggle="tooltip" data-original-title>
                                    <i class="fa fa-plus"></i>
                                </button>
                            </div>
                        </div>
                    </div>
            </div>
            <div class="box-body" style="overflow:auto;">
                <table class="table table-striped table-bordered">
                    <thead>
                        <tr class="info">
                            <th class="text-muted text-center">操作</th>
                            <th class="text-muted text-center">类型</th>
                            <th class="text-muted text-center">旧备件名称</th>
                            <th class="text-muted text-center">旧备件品牌</th>
                            <th class="text-muted text-center">旧备件型号</th>
                            <th class="text-muted text-center">旧备件序列号</th>
                            <th class="text-muted text-center">旧备件价格(元)</th>
                            <th class="text-muted text-center">新备件名称</th>
                            <th class="text-muted text-center">新备件品牌</th>
                            <th class="text-muted text-center">新备件型号</th>
                            <th class="text-muted text-center">新备件序列号</th>
                            <th class="text-muted text-center">新备件价格(元)</th>
                            <th class="text-muted text-center">旧备件图片数量</th>
                            <th class="text-muted text-center">新备件图片数量</th>
                            <th class="text-muted text-center">备注</th>
                        </tr>
                    </thead>
                    <tbody id="part_list"></tbody>
                </table>
            </div>
            <div class="box-footer">
                 <span class="pull-right">
                    <button data-iziModal-close class="btn btn-default" style="margin-right: 5px">关闭</button>
                </span>
                <span class="pull-right">
                    <button  class="btn btn-info" id="savePart" style="margin-right: 5px">提交</button>
                </span>
            </div>
        </div>
        <div id="addPart-modal" style="display: none;">
            <div class="box-body">
                <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">类型</label>
                        <div class="col-md-9" >
                            <div class="radio">
                                <label>
                                    <input type="radio" class="flat-green" value="2001" name="partExplain">&nbsp;&nbsp;&nbsp;&nbsp;新增
                                </label>
                                <label>
                                    <input type="radio" class="flat-green" name="partExplain" checked value="2000">&nbsp;&nbsp;&nbsp;&nbsp;更换
                                </label>
                                <label>
                                    <input type="radio" class="flat-green" name="partExplain"  value="2002">&nbsp;&nbsp;&nbsp;&nbsp;收回
                                </label>
                            </div>
                        </div>
                </div>
                <div id="oldDiv">
                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">旧备件名称</label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="oldPartName">
                        </div>
                    </div>

                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">旧备件品牌</label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="oldPartBrand">
                        </div>
                    </div>

                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">旧备件型号</label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="oldPartModel">
                        </div>
                    </div>

                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">旧备件序列号</label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="oldPartSn">
                        </div>
                    </div>

                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">旧备件价格(元)</label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="oldPartPrice">
                        </div>
                    </div>

                    <form id="oldFileForm" method="POST" class="form-horizontal" enctype="multipart/form-data">
                        <input type="hidden" value="1407" name="keyType">
                        <input type="hidden" value="3404" name="fileType">
                        <div class="col-md-10">
                            <label  class="col-sm-2 control-label text-muted">旧备件图片</label>
                            <div class="col-md-9 form-group" >
                                <input type="file" class="file"   name="files" multiple>
                            </div>
                        </div>
                    </form>
                </div>
                <div id="newDiv">
                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">新备件名称</label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="newPartName">
                        </div>
                    </div>

                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">新备件品牌</label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="newPartBrand">
                        </div>
                    </div>

                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">新备件型号</label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="newPartModel">
                        </div>
                    </div>

                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">新备件序列号</label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="newPartSn">
                        </div>
                    </div>

                    <div class="col-md-6">
                        <label  class="col-sm-3 control-label text-muted">新备件价格(元)</label>
                        <div class="col-md-9 form-group" >
                            <input type="text" class="form-control" name="newPartPrice">
                        </div>
                    </div>

                    <form id="newFileForm" method="POST" class="form-horizontal" enctype="multipart/form-data">
                        <input type="hidden" value="1407" name="keyType">
                        <input type="hidden" value="3403" name="fileType">
                        <div class="col-md-10">
                            <label  class="col-sm-2 control-label text-muted">新备件图片</label>
                            <div class="col-md-9 form-group" >
                                <input type="file" class="file"  name="files" multiple>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="col-md-6">
                    <label  class="col-sm-3 control-label text-muted">备注</label>
                    <div class="col-md-9 form-group" >
                        <input type="text" class="form-control" name="remark">
                    </div>
                </div>
            </div>
            <div class="box-footer">
                 <span class="pull-right">
                    <button data-iziModal-close class="btn btn-default" style="margin-right: 5px">关闭</button>
                </span>
                <span class="pull-right">
                    <button  class="btn btn-info" id="addPart" style="margin-right: 5px">提交</button>
                </span>
            </div>
        </div>
        <div id="showFileDiv" style="display: none;">
            <div class="box-body">
                <div class="col-md-12" id="oldFileDiv">
                    <label  class="col-sm-1 control-label text-muted">旧备件图片</label><div class="col-md-9" id="oldFileImgDiv"></div>
                </div>

                <div class="col-md-12"  id="newFileDiv">
                    <label  class="col-sm-1 control-label text-muted">新备件图片</label><div class="col-md-9" id="newFileImgDiv"></div>
                </div>
            </div>

            <div class="box-footer">
                 <span class="pull-right">
                    <button data-iziModal-close class="btn btn-default" style="margin-right: 5px">关闭</button>
                </span>
            </div>
        </div>
        <footer class="main-footer">
            <div class="pull-right hidden-xs">
                <b>Version</b> 1.0.0
            </div>
            <strong>Copyright &copy; 2019 <a href="http://almsaeedstudio.com">Topmed</a>.</strong> All rights reserved.
        </footer>
        <jsp:include page="../menuRight.jsp"></jsp:include>
    </div>
    <!-- ./wrapper -->

    <!-- ./wrapper -->
    <script src="<%=basePath%>/plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="<%=basePath%>/bootstrap/js/bootstrap.min.js"></script>
    <script src="<%=basePath%>/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <script src="<%=basePath%>/plugins/fastclick/fastclick.js"></script>
    <script src="<%=basePath%>/dist/js/app.min.js"></script>
    <script src="<%=basePath%>/dist/js/demo.js"></script>
    <script src="<%=basePath%>/bootstrapvalidator/js/bootstrapValidator.min.js"></script>
    <script src="<%=basePath%>/toastr/toastr.js"></script>
    <script src="<%=basePath%>/pagination/js/jquery.pagination.min.js"></script>
    <script src="<%=basePath%>/js/overallSituation.js"></script>
    <script src="<%=basePath%>/fileupload/fileinput.min.js"></script>
    <script src="<%=basePath%>/fileupload/zh.js" type="text/javascript"></script>
    <script src="<%=basePath%>/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script src="<%=basePath%>/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="<%=basePath%>/plugins/select2/select2.min.js"></script>
    <script src="<%=basePath%>/plugins/select2/i18n/zh-CN.js"></script>
    <script src="<%=basePath%>/plugins/iCheck/icheck.min.js"></script>
    <script src="<%=basePath%>/plugins/iziModal/js/iziModal.min.js"></script>
    <script src="<%=basePath%>/plugins/flavr/flavr.min.js"></script>
    <script src="<%=basePath%>/plugins/viewer/viewer.min.js"></script>
    <script src="<%=basePath%>/plugins/bootstrap-treeview/js/bootstrap-treeview.js"></script>
    <script src="<%=basePath%>/js/map.js"></script>
    <script src="<%=basePath%>/js/typeahead.js"></script>
    <script src="<%=basePath%>/js/query-device.js"></script>
    <script src="<%=basePath%>/js/query-hospital.js"></script>
    <script src="<%=basePath%>/js/event-add.js"></script>
    <script src="<%=basePath%>/js/public-confirm.js"></script>
    <script src="<%=basePath%>/js/repair/repair-page.js"></script>
    </body>
</html>
